import http from "@/utils/request";

export default{
    // 查询
    async getrdList(pageNo,pageSize, approveStatus, startDate, endDate){
        return await http.get("/api/yxglRdjjfz/list",{pageNo,pageSize, approveStatus, startDate, endDate});
    },
    // 新增
    async addrd(params){
        // console.log(1);
        return await http.post("/api/rdjjfz/add",params)
    },
    // 编辑
    async updaterd(params){
        // console.log(29999999);
        return await http.put("/api/rdjjfz/update",params)
    },
    // 上传文件
    async importExcel(myfile) {
        // console.log(29999999);
        console.log(myfile.get("myfile"));

        return await http.upload("/api/fileAbout/fileUpload", {myfile});
    },
    // 导入文件
    async batchImportExcel(filePath) {
        // console.log(typeof(filePath));
        // console.log(filePath.get("filePath"));
        return await http.upload("/api/rdjjfz/batchInput", {filePath});
    },
    // 下载模板
    async download(params) {
        console.log(1);
        return await http.get('/api/rdjjfz/downLoadExcel', params);
    }
};